package com.probox.activity.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ActivityInfoQuery  {

    @ApiModelProperty(value = "参与活动ID(砍价记录,成功列表,砍价详情,帮砍必传)")
    private Long joinUid;

    @ApiModelProperty(value = "活动ID(查活动和商品详情必传)")
    private Long activityUid;

    /**
     * 活动类型
     */
    @ApiModelProperty(value = "活动类型(bargain砍价/seckill秒杀/limittime限时/group团购/free新人免费领/packages套餐/score积分兑换)")
    private String activityType;

    /**
     * 活动名称
     */
    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "购物车ID，发起砍价必传")
    private Long carUids;//购物车ID

    @ApiModelProperty(value = "活动商品ID，发起砍价必传")
    private Long activityProUid;

    @ApiModelProperty(value = "用户地址，发起砍价必传")
    private Long addressUid;//用户地址ID

    @ApiModelProperty(value = "商品ID(发起砍价必传)")
    private Long proUid;


    @ApiModelProperty(value = "活动价格")
    private Long activityPrice;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 套餐价格
     */
    @ApiModelProperty(value = "套餐价格")
    private Long packagesPrice;
    /**
     * 套餐图片
     */
    private String packagesUrl;
    /** 套餐限购 */
    @ApiModelProperty(value = "套餐限购")
    private Long packagesLimit;

    /** 套餐库存 */
    @ApiModelProperty(value = "套餐库存")
    private Long packagesStock;
    /**
     * 预留支付时长
     */
    private Long payMinute;
    /**
     * 是否自动拼团成功
     */
    private String autoSuccess;


    @ApiModelProperty(value = "商品名称")
    private String proName;
    @ApiModelProperty(value = "商品图片")
    private String imgUrl;

    @Excel(name = "商品编号")
    @ApiModelProperty(value = "商品编号")
    private String proNo;

    @Excel(name = "商品单位")
    @ApiModelProperty(value = "商品单位")
    private String proUnit;

    @ApiModelProperty(value = "商品数量")
    private Long amount;

    @ApiModelProperty(value = "过期时间")
    private Date expireDate;

    /**
     * 状态
     */
    private String dataStatus;
    /**
     * 平台ID
     */
    private Long platformUid;

    private Long supplierUid;

    private Long customerUid;

    private String customerName;
    private String phone;

    private String payMethod;

    private String platSource;
}
